﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WowParserLib.Events.SuffixArgs;
using WowParserLib.Events;

namespace WowParserLib.EventParsers
{
    public class DispellFailedArgsParser: EventArgsParser
    {
        public DispellFailedArgsParser(int startIndex)
            : base(startIndex)
        {
        }


        public override WowParserLib.Events.EventArguments Parse(string[] args)
        {
            //7,8,9
            int spellId = int.Parse(args[StartIndex]);
            SpellSchool school = (SpellSchool)Convert.ToInt32(args[StartIndex + 2], 16);
            return new DispellFailedArgs(spellId, args[StartIndex + 1], school);
        }
    }
}
